package priv.mill.generator;

import java.io.InputStream;

import org.yaml.snakeyaml.Yaml;

public class Config {
	
	static final Config INSTANCE ;
	static {
		Yaml yaml = new Yaml();
		InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("generator_config.yml");
		INSTANCE = yaml.loadAs(in, Config.class);
	}

	private Config() {}
	
	private EntryConfig entry;
	private HtmlConfig html;

	public EntryConfig getEntry() {
		return entry;
	}

	public void setEntry(EntryConfig entry) {
		this.entry = entry;
	}
	
	@Override
	public String toString() {
		return "Config [entry=" + entry + "]";
	}

	public static void main(String[] args) {
		System.out.println(INSTANCE);
	}

	public HtmlConfig getHtml() {
		return html;
	}

	public void setHtml(HtmlConfig html) {
		this.html = html;
	}
}
